import React, { useState, useEffect } from 'react';
import styles from './index.less';
import { history, formatMessage, useIntl, getDvaApp } from 'umi';
import { Button } from 'antd';

export default (props) => {

  const [count, setCount] = useState(0);

  useEffect(() => {
    
  }, [])

  return (
    <div>
      <div>count:{count}</div>
      <Button onClick={() => { setCount(count + 1) }}>add</Button>
    </div>
  );
};


